
let p = new Promise((resolve,reject)=>{
  reject('output error')
})
p.then(value=>{
  console.log('value-',value)
}).catch(err=>{
  console.log('err',err);
})
